filechooser: Fix crash when file has no content-type
authorBastien Nocera <hadess@hadess.net>
Fri, 28 Feb 2020 15:56:29 +0000 (16:56 +0100)
committerBastien Nocera <hadess@hadess.net>
Fri, 28 Feb 2020 16:32:48 +0000 (17:32 +0100)
commit823714cf66c887886fb58a21c016f0d58acb1047
tree5c6f7fc0033a4e0a8a9ca4276cadb0dd36e65981
parentcf2bcef814d0a3713f01a8bea93a0a96941f5726
filechooser: Fix crash when file has no content-type

This might happen for slow filesystems where a fast-content-type might
be provided instead. Don't try to manipulate that content_type if it's
NULL, otherwise we'll either throw warnings (at best) or crash (at
worse).

Conflicts:
gtk/gtkfilechooserwidget.c
gtk/gtkfilechooserwidget.c